package chen.yi.web.config;

import chen.yi.common.constant.TokenConstant;
import chen.yi.component.idempotent.sign.SignInterface;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Component;

/**
 * @author huat
 **/
@Component
public class SignInterfaceImpl implements SignInterface {
    @Override
    public String getUserSign(HttpServletRequest request) {
        return request.getHeader(TokenConstant.TOKEN_KEY);
    }
}
